package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.time.LocalDate;

/**
 * 员工-班次关联表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_employee_shift")
public class EmployeeShift extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 班次ID
     */
    private Long shiftId;

    /**
     * 生效日期
     */
    private LocalDate effectiveDate;

    /**
     * 失效日期(空表示永久生效)
     */
    private LocalDate expiryDate;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    @TableLogic
    private String delFlag;
}
